<ion-view view-title="我的工单" cache-view="false">
  <ion-nav-bar class="bar-dark">
    <ion-nav-buttons side="right">
      <button class="button icon ion-qr-scanner" ng-click="scanOrders();">扫一扫</button>
    </ion-nav-buttons>
  </ion-nav-bar>
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"></ion-refresher>
    <ion-list>
      <ion-item ng-show="!chats.length">
        <p>无工单</p>
      </ion-item>
      <ion-item class="item-remove-animate item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/app/chats/{{chat.id}}">
        <!--<img ng-src="{{chat.face}}">-->
        <div class="row"><h2>{{chat.deviceName}} </h2><h2 ng-if="chat.status === 2"> 待返修</h2><h2 ng-if="chat.status === 1"> 待处理</h2></div>
        <p>工单号：{{chat.id}}  时间：{{chat.reportTime}}</p>
        <i class="icon ion-chevron-right icon-accessory"></i>
        <!--<ion-option-button class="button-assertive" ng-click="remove(chat)">-->
          <!--Delete-->
        <!--</ion-option-button>-->

      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
